package com.yanfan.energy.mapper;

import com.yanfan.energy.domain.Consumables;
import com.yanfan.energy.domain.EquipmentConsumptionDto;
import com.yanfan.energy.domain.vo.EnergyFlowVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConsumablesMapper {

    int addConfiguration(Consumables consumables);

    List<Consumables> selectConfiguration(Consumables consumables);

    int updateConfiguration(Consumables consumables);

    int deleteConfiguration(Long configurationId);

    List<EquipmentConsumptionDto> getEquipmentConsumption(@Param("consumables") Consumables consumables,@Param("collect") List<Long> collect);

    List<EnergyFlowVo> selectEnergyFlowsList(Consumables consumables);
}
